// register
import register from '../../../scripts/angular/register.js';

// router
import UserRouter from '../routers/user.routers.js';

// service
import UserService from '../services/userService.js';


// controller
import LoginController from '../controllers/login.controller.js';
import FindpassController from '../controllers/findpass.controller.js';
import RegisterController from '../controllers/register.controller.js';
import ModifypassController from '../controllers/modifypass.controller.js';
import SmsAddController from '../controllers/smsadd.controller.js';
import MaterialController from '../controllers/material.controller.js';

// module
angular
    .module('user.module', [
        'ngCookies',
        'ngAnimate', 
        'ngSanitize', 
        'ui.router',
        'ngMessages',  
        'chieffancypants.loadingBar', 
        'ngDialog', 
        'oc.lazyLoad'
    ])
    .config(UserRouter)
    .controller('LoginController', LoginController)
    .controller('FindpassController', FindpassController)
    .controller('RegisterController', RegisterController)
    .controller('ModifypassController', ModifypassController)
    .controller('SmsAddController', SmsAddController)
    .controller('MaterialController', MaterialController);

register('user.module')
    .factory('UserService', UserService);